package editor
{
	import UIFree.uif_component;
	
	import components.uif_cross;
	
	import flash.events.Event;
	import flash.events.MouseEvent;

	public class pi_close extends uif_cross {
		public function pi_close(parent:uif_component, ax: int=0, ay: int=0) {
			super(parent, ax?ax:(parent.width - 18), ay?ay:- 18, 20, 20, 'closeButton');
			this.addEventListener(MouseEvent.CLICK, function(e: MouseEvent): void {
				parent.dispatchEvent(new Event(Event.CLOSE));
			});
		}
		
	}
}